<?php defined('EN_CODE') or die(__FILE__.': Direct Access Denied'); ?>

<!DOCTYPE HTML>
<html>
  <head>
    <base href="<?php echo BASE_URL;?>" />
    <meta charset="UTF-8" />
    <title><?php echo $title; ?> - ElectroSystem</title>
    <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="js/jquery-ui-1.8.21.custom.min.js"></script>
    <script type="text/javascript" src="js/bootstrap.min.js"></script>
    <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="css/bootstrap-fix.css" />
    <link rel="stylesheet" type="text/css" href="css/jquery-ui-1.8.21.custom.css" />
  </head>
  <body>
    <div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <a class="brand" href="./">ElectroSystem</a>
          <div class="">
            <ul class="nav">
              <li<?php if ($slug=='productos') { echo ' class="active"'; } ?>><a href="productos">Productos</a></li>
              <li<?php if ($slug=='reportes') { echo ' class="active"'; } ?>><a href="reportes">Reportes</a></li>
              <li<?php if ($slug=='ventas') { echo ' class="active"'; } ?>><a href="ventas">Ventas</a></li>
              <li<?php if ($slug=='clientes') { echo ' class="active"'; } ?>><a href="clientes">Clientes</a></li>
              <li<?php if ($slug=='tipos') { echo ' class="active"'; } ?>><a href="tipos">Tipos</a></li>
              <li<?php if ($slug=='marcas') { echo ' class="active"'; } ?>><a href="marcas">Marcas</a></li>
              <li<?php if ($slug=='proveedores') { echo ' class="active"'; } ?>><a href="proveedores">Proveedores</a></li>
              <li<?php if ($slug=='compras') { echo ' class="active"'; } ?>><a href="compras">Compras</a></li>
              <li<?php if ($slug=='usuarios') { echo ' class="active"'; } ?>><a href="usuarios">Usuarios</a></li>
            </ul>
            <ul class="nav pull-right">
              <li<?php if ($slug=='ayuda') { echo ' class="active"'; } ?>><a href="ayuda">Ayuda</a></li>
              <li class="divider-vertical"></li>
              <li class="pull-right"><a href="#">Salir</a></li>
            </ul>
          </div>
        </div>
      </div>
    </div>
    <div id="container" class="container">
      <?php if (!empty($message)): ?>
      <div id="messages" class="alert<?php if (isset($message_type)) { echo " alert-$message_type"; } ?>">
        <a class="close" data-dismiss="alert" href="#">×</a>
        <?php echo $message; ?>
      </div>
      <?php endif; ?>
      <?php echo $content; ?>
    </div>
  </body>
</html>
